import { ipcMain} from 'electron'
//获取当前系统信息
const getSystemInformation = () => {
ipcMain.handle('get-system-information', async (_) => {
  return {
    platform: process.platform,
    arch: process.arch,
    versions: {
      electron: process.versions.electron,
      chrome: process.versions.chrome,
      node: process.versions.node
    },
  }
})
}

export default {
  getSystemInformation,
}
